//
//  MadDebug.m
//  MadGTD
//
//  Created by Fuzhou Chen on 4/30/12.
//  Copyright (c) 2012 Fuzhou Chen. All rights reserved.
//

#include <stdarg.h>
#include <CoreFoundation/CoreFoundation.h>
#include "MadDebug.h"

void MadCNSLog(const char* format, ...)
{
    NSString* nsFormat = nil;
    va_list args;
    
    va_start(args, format);

    nsFormat = [[NSString alloc] initWithUTF8String:format];
    NSLogv(nsFormat, args);
    [nsFormat release];
    va_end(args);
    return;
}
